package com.gl.organigrama.services.impl;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.gl.organigrama.services.ChartService;
import com.gl.organigrama.services.NodoDTOService;

@Path("/chart/{id}")
@Scope("request")
@Component

public class ChartServiceImpl implements ChartService {
	
	@Autowired
	private NodoDTOService nodoDTOService;

	
	
	
	
	@Override
	@GET
	@Produces("application/json")
	public List<List<Object>> getChart( @PathParam("id")String id) {
		
		return nodoDTOService.getChart(Long.valueOf(id));
	}

}
